@extends('Admin.layout.layout')

@section('title')
    <title>后台管理-浏览店铺</title>
@endsection

@section('con')
<div style="min-height: 402px;">
            <div class="row">
                <div class="col-lg-12">
                    <h4 class="page-header">浏览店铺</h4>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            店铺详情
                        </div>
    
                        <div class="panel-body">
                            <div class="dataTable_wrapper">
                                <div id="dataTables-example_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
                                
                                
                                <div class="row">
                         <!-- 显示条数 -->
                                   <form action="{{url('admin/dianpu/index')}}" method="get"> 
                                    <div class="col-sm-8">
                                    <div class="dataTables_length" id="dataTables-example_length">
                                    
                                    <span>显示</span> 
                                    <select name="num" aria-controls="dataTables-example" class="form-control input-sm">
                                        <option value="10" @if($data['num']=='10') selected @endif>10</option>
                                        <option value="25" @if($data['num']=='25') selected @endif>25</option>
                                        <option value="50" @if($data['num']=='50') selected @endif>50</option>
                                        <option value="100" @if($data['num']=='100') selected @endif>100</option>
                                    </select> 条数据
                                    
                                    </div>
                                    </div>
                         <!-- 搜索 -->
                                    <div class="col-sm-4">
                                    <div id="dataTables-example_filter" class="dataTables_filter">
                                    
                                    <label>店铺:　<input type="text" class="form-control input-sm" placeholder="" aria-controls="dataTables-example" name="keywords" value="{{$data['keywords']}}"></label>
                                    <button class="btn btn-default btn-sm">搜索</button>
                                    
                                    </div>
                                    </div>
                                </form>
                                </div>
                                
                                
                                <div class="row">

                            <!-- 列表 -->
                                <div class="col-sm-12">
                                    <table class="table table-bordered" style="text-align:center">
                                        <thead>
                                          <tr style="font-size:12px;color:#656565">    
                                            <th style="text-align:center">店铺名</th>
                                            <th style="text-align:center">店长</th>
                                            <th style="text-align:center">手机号</th>
                                            <th style="text-align:center">邮箱</th>
                                            <th style="text-align:center">logo</th>
                                            <!-- <th style="text-align:center">状态</th> -->
                                            <th style="text-align:center">操作</th>
                                          </tr>
                                        </thead>
                                          
                                        <tbody>
                                        @foreach($res as $k=>$v)
                                         <tr>
                                             <td>{{$v->name}}</td>
                                             <td>{{$v->uname}}</td>
                                             <td>{{$v->phone}}</td>
                                             <td>{{$v->email}}</td> 
                                             <td><img src="{{$v->logo}}" width="50px"></td>
                                             <td><a href="{{url('admin/dianpu/del',['id'=>$v->id])}}">删除</a>
                                             |<a href="{{url('admin/dianpu/select',['id'=>$v->id])}}">查看</a></td>
                                         </tr>
                                        @endforeach
                                        </tbody>
                                       
                                      </table>
                                    
                                     
                                </div>
                                </div>
                                  {!! $res->appends($data)->render() !!}  
                            </div>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>

        </div>
@endsection